﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Work2
{
    class Cat : Animal, IType2
    {
        public string name { get; set; }
        public Cat(string name, string eat) : base(eat)
        {
            this.name = name;
        }

        public void pashu()
        {
            Console.WriteLine("{0}会爬树",this.name);
        }

        public override void Eat()
        {
            base.Eat();
            Console.WriteLine("{0}会{1}",this.name,this.eat);
        }
    }
}
